{{ if ( and ( findRE ".*mongo-java-driver/5.0/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/current/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/current/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.11/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.11/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.11/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.10/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.10/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.10/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.9/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.9/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.9/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.8/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.8/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.8/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.7/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.7/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.7/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.6/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.6/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.6/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.5/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.5/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.5/" />
{{ end }}
{{ if ( and ( findRE ".*mongo-java-driver/4.4/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.4/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.4/" />
{{ end }}

{{ if ( and ( findRE ".*mongo-java-driver/4.3/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) (not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/v4.3/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/v4.3/" />
{{ end }}

{{ if ( findRE ".*mongo-java-driver/4.0/upgrading/.+" .URL ) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/drivers/java/sync/current/reference/upgrade/#version-4.0-breaking-changes"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/drivers/java/sync/current/reference/upgrade/#version-4.0-breaking-changes" />
{{ end }}

{{ if ( and ( findRE ".*mongo-java-driver/5.0/driver-reactive/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/languages/java/reactive-streams-driver/v5.0/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/java/reactive-streams-driver/v5.0/" />
{{ end }}

{{ if ( and ( findRE ".*mongo-java-driver/4.*/driver-reactive/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-scala/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/languages/java/reactive-streams-driver/v4.x/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/java/reactive-streams-driver/v4.x/" />
{{ end }}

{{ if ( and ( findRE ".*mongo-java-driver/5.0/driver-scala/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/languages/scala/scala-driver/v5.0/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/scala/scala-driver/v5.0/" />
{{ end }}

{{ if ( and ( findRE ".*mongo-java-driver/4.*/driver-scala/.+" .URL ) ( not ( findRE ".*/apidocs/.*" .URL )) ( not ( findRE ".*/driver-reactive/.*" .URL )) ( not ( findRE ".*/whats-new/.*" .URL ))) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/languages/scala/scala-driver/v4.x/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/scala/scala-driver/v4.x/" />
{{ end }}

{{ if ( findRE ".*mongo-java-driver/.+" .URL ) }}
  <link rel="canonical" href="https://www.mongodb.com/docs/languages/java/"/>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="0;url=https://www.mongodb.com/docs/languages/java/" />
{{ end }}
